﻿using PetaPoco;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BrnMall.Manager.Domain.AddressBook
{
    /// <summary>
    /// 部门成员
    /// </summary>
    [TableName("crm_Staff")]
    [PrimaryKey("id")]
    public class Staff
    {
        public int Id { get; set; }
        /// <summary>
        /// 店铺ID
        /// </summary>
        public int StoreId { get; set; }
        /// <summary>
        /// 会员ID
        /// </summary>
        public int Uid { get; set; }
        /// <summary>
        /// 头像
        /// </summary>
        public string Avater { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 名片手机号   
        /// </summary>
        public string Mobile { get; set; }  

        public string Phone { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        public string Email { get; set; }
        /// <summary>
        /// 职位
        /// </summary>
        public string Position { get; set; }
        /// <summary>
        /// 公司名
        /// </summary>
        public string Company { get; set; }
        /// <summary>
        /// 微信号
        /// </summary>
        public string Wxid { get; set; }
        /// <summary>
        /// 地区ID (0 国外, 大于0 国内)
        /// </summary>
        public int Regionid { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public string Address { get; set; }
        /// <summary>
        /// 部门名称，多个逗号隔开
        /// </summary>
        public string Department { get; set; }
        /// <summary>
        /// 部门ID，多个用逗号隔开，与企业微信同步
        /// </summary>
        public string DepartmentId { get; set; }
        /// <summary>
        /// 企业微信的userid
        /// </summary>
        public string wxUserId { get; set; }
        /// <summary>
        /// 绑定微信的手机号
        /// </summary>
        public string wxMobile { get; set; }
        /// <summary>
        /// AI雷达状态（0 未开通,1 开通, 2 客户屏蔽名片）
        /// </summary>
        public int AiState { get; set; }
        /// <summary>
        /// Boss雷达状态（0未开通，1开通）
        /// </summary>
        public int BossState { get; set; }
        /// <summary>
        /// 手机号状态(0 不公开, 1 公开)
        /// </summary>
        public string MobileState { get; set; }
        /// <summary>
        /// 个性签名
        /// </summary>
        public string Sign { get; set; }
        /// <summary>
        /// 名片二维码
        /// </summary>
        public string QrCode { get; set; }
        /// <summary>
        /// 名片点赞数
        /// </summary>
        public int UpCount { get; set; }
        /// <summary>
        /// 分享数
        /// </summary>
        public int ShareCount { get; set; }
        /// <summary>
        /// 点击数
        /// </summary>
        public int ClickCount { get; set; }
        /// <summary>
        /// 签名点击数
        /// </summary>
        public int SignUpCount { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime Addtime { get; set; }
    }
}